/**
 * Project Name:九色鹿
 * File Name:ConstantCode.java
 * Package Name:com.fxp.project.jiuselu.commons.constant
 * Date:2021-08-25 11:20 下午
 * Copyright (c) 2021, Jason.Wang All Rights Reserved.
 */
package com.fxp.project.jiuselu.commons.constant;

import com.fxp.project.jiuselu.commons.code.RetCode;

/**
 * ClassName: ConstantCode<br/>
 * Function: 常量信息<br/>
 * Date: 2021-08-25 11:20 下午<br/>
 *
 * @author Jason.Wang
 * @version 1.0.0.0
 * @see
 * @since JDK 1.8
 */
public class ConstantCode {

    /**
     * 执行成功
     */
    public static final RetCode SUCCESS = RetCode.mark(000000, "操作成功");
    /**
     * 系统异常
     */
    public static final RetCode SYSTEM_EXCEPTION = RetCode.mark(102000, "system exception");

    /**
     * Business exception.
     */
    public static final RetCode CHECK_CODE_NULL = RetCode.mark(202107, "checkCode is null");
    public static final RetCode CHECK_WXUSER_MES_NULL = RetCode.mark(200831, "no message for user");
    public static final RetCode INVALID_CHECK_CODE = RetCode.mark(202108, "invalid checkCode");
    public static final RetCode USER_EXISTS = RetCode.mark(202114, "user already exists");
    public static final RetCode INVALID_TOKEN = RetCode.mark(202152, "invalid token");
    public static final RetCode TOKEN_EXPIRE = RetCode.mark(202153, "token expire");

    /**
     * Auth Exception
     */
    public static final RetCode USER_NOT_LOGGED_IN = RetCode.mark(302000, "user not logged in");
    public static final RetCode ACCESS_DENIED = RetCode.mark(302001, "access denied");

    /**
     * param exception
     */
    public static final RetCode PARAM_EXCEPTION = RetCode.mark(402000, "系统正在维护中");
}
